// File: mock/list.js

import Mock from 'mockjs';

const listData = Mock.mock({
    'list|10': [
        {
            'id|+1': 1,
            name: '@cname',
            'age|18-60': 1,
            address: '@county(true)',
            email: '@email',
            phone: /^1[385][1-9]\d{8}/
        }
    ]
});


export default [
    {
        url: '/mock/api/user/list',
        method: 'get',
        response: () => {
            return {
                code: 200,
                data: listData.list,
                message: 'success'
            };
        }
    }
];